package other.callback;

/**
 * @author 王霄
 * @date 2022/2/19 21:22
 */
public class DefaultCallBack implements CallBack<Request, Response> {
    @Override
    public void callback(Request request, Response response) {
        if (response.getCode() == 200) {
            System.out.println("响应成功");
        } else {
            System.out.println("响应失败");
        }
    }

    @Override
    public void onTimeout(Request request) {
        System.out.println("请求超时");
    }

}
